<template>
  <div class="search">
    <div class="mySearch" @click="search">搜索商品，共{{num}}款好物</div>
  </div>
</template>

<script>
export default {
  name: "search",
  data() {
    return {
      num: 23078
    };
  },
  methods: {
    search() {
      this.$router.push({
        name: "searchIndex"
      });
    }
  }
};
</script>

<style  scoped>
.mySearch {
  background: #ededed;
  width: 100%;
  border-radius: 0.10667rem;
  height: 0.74667rem;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: center;
  font-size: 0.37rem;
  color: #666;
}
</style>